package com.tyk.bookstore.back.system.model.query;

import com.tyk.bookstore.back.system.model.type.MenuType;
import com.tyk.bookstore.back.system.valid.annotation.MenuFieldValid;
import com.tyk.bookstore.back.system.valid.type.MenuFieldValidType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class MenuListQuery {

    @Schema(description = "父菜单ID")
    @Min(value = 0)
    private Long parentId;

    @Schema(description = "菜单名称(模糊)")
    private String title;

    @Schema(description = "菜单类型[0子菜单,1菜单项]")
    private MenuType type;

    @Schema(description = "是否隐藏")
    private Boolean hidden;

    @Schema(description = "是否缓存")
    private Boolean keepAlive;

    @Schema(description = "创建时间: 开始时间")
    private LocalDateTime startTime;

    @Schema(description = "创建时间: 结束时间")
    private LocalDateTime endTime;
}